package com.varbal.icegame.config;

import com.varbal.icegame.action.AnimalAction;
import com.varbal.icegame.action.impl.AnimalActionImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration//配置类
public class MyAppConfig {

    @Bean//通过return给ioc容器中添加组件，id为方法名
    public AnimalAction animalAction(){
        return new AnimalActionImpl();
    }
}
